package com.wgy.day16.Math;

/**
 * Created by pc on 2020/11/12 0:04
 * Description: LearningJava
 */
public class Demo01MathPractise {
    public static void main(String[] args) {
        int num = 0;

        for (int i = (int) -10.8; i < 5.9; i++) {
            if (Math.abs(i) > 6 || Math.abs(i) < 2.1) {
                System.out.println(i);
                num++;
            }


        }
        System.out.println("================");
        System.out.println(num);
    }

}
